package com.link.base.base.interstatistics.service;

import com.link.base.base.duty.service.DutyService;
import com.link.base.base.interstatistics.dao.mybatis.mapper.VisitStatisticsMapper;
import com.link.base.base.interstatistics.model.VisitStatistics;
import com.link.base.base.urlinfo.service.UrlDutyLinkService;
import com.link.base.base.urlinfo.service.UrlInfoService;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author yipeng.zhu@hand-china.com
 * @version 1.0
 * @date: 10:09 2019/1/16
 */
@Service
public class VisitStatisticsServiceImpl extends BasicServiceImpl<VisitStatistics> implements VisitStatisticsService {
    @Resource
    private VisitStatisticsMapper visitStatisticsMapper;

    @Resource
    private DutyService dutyService ;

    @Resource
    private UrlInfoService urlInfoService;
    @Resource
    private UrlDutyLinkService dutyLinkService;

    @Override
    public BasicMapper<VisitStatistics> getBasicMapper() {
        return visitStatisticsMapper;
    }

    @Override
    public void updateStatusToy(String url) {
        visitStatisticsMapper.updateStatusToy(url);
    }
}
